get_all_subdirs(${CMAKE_CURRENT_SOURCE_DIR} SUBDIRS)

foreach(subdir ${SUBDIRS})
  add_subdirectory(${subdir})
endforeach()
